<!-- inc:header -->
<div class="notice"><div class="p">
	<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td width="130px"><span class="lead">&nbsp;&raquo; 修改订单</span></td>
		<td align="right"><a href="{:site_url('order')}" class="button">订单列表</a></td>
	</tr>
	</table>
</div></div>


<form method="post" action="{:site_url('order,setok')}id={:$id}" onsubmit="return to_setok('{:$id}')">
<div class="table">
	<div class="left">订单编号：</div>
	<input type="text" name="sn" id="sn" value="{:$rs[sn]}" disabled>
	<span class="clue_on"> 不允许修改</span>
</div>
<div class="table">
	<div class="left"><span class="red">*</span> 密钥：</div>
	<input type="text" name="pass" id="pass" value="{:$rs[pass]}" class="long_input">
	<span class="clue_on">[提供游客查看订单]</span>
</div>
<div class="table">
	<div class="left">金额：</div>
	<input type="text" name="price" id="price" value="{:$rs[price]}" class="short_input" disabled>
	<span class="clue_on">[金额不允许修改，请修改产品的售价]</span>
</div>

<div class="table">
	<div class="left"><span class="red">*</span> 姓名：</div>
	<input type="text" name="fullname" id="" value="{:$rs[fullname]}">
	<!-- if($rs[uid]) -->
	<input type="button" value="查看会员资料" onclick="show_user('{:$rs[uid]}');" />
	<!-- end -->
</div>

<div class="table">
	<div class="left">电话：</div>
	<input type="text" name="tel" id="tel" value="{:$rs[tel]}">
</div>
<div class="table">
	<div class="left">手机：</div>
	<input type="text" name="mobile" id="mobile" value="{:$rs[mobile]}">
</div>
<div class="table">
	<div class="left">Email：</div>
	<input type="text" name="email" id="email" value="{:$rs[email]}">
</div>
<div class="table">
	<div class="left">地址：</div>
	<input type="text" name="address" id="address" value="{:$rs[address]}" class="long_input">
</div>
<div class="table">
	<div class="left">邮编：</div>
	<input type="text" name="zipcode" id="zipcode" value="{:$rs[zipcode]}" class="short_input">
</div>
<div class="table">
	<div class="left">留言：</div>
	<textarea id="note" name="note" class="long_input" style="height:65px;">{:$rs[note]}</textarea>
</div>
<div class="table">
	<div class="left">付款状态：</div>
	<table>
	<tr>
		<td><input type="radio" name="pay_status"{if(!$rs[pay_status])} checked{end} value="0" /></td>
		<td>未付款 &nbsp; </td>
		<td><input type="radio" name="pay_status"{if($rs[pay_status])} checked{end} value="1" /></td>
		<td>已付款</td>
	</tr>
	</table>
</div>
<div class="table">
	<div class="left">付款方式：</div>
	<select name="pay_type" id="pay_type">
	<option value="0">请选择付款方式</option>
	<!-- $pay_rslist AS $key=>$value -->
	<option value="{:$value[id]}"{if($rs[pay_type] == $value[id])} selected{end}>{:$value[title]}</option>
	<!-- end -->
	</select>
	<input type="text" name="pay_code" id="pay_code" value="{:$rs[pay_code]}">
	<span class="clue_on">[已付款请填写相应的“识别码”]</span>
</div>
<div class="table">
	<div class="left">付款金额：</div>
	<input type="text" name="pay_price" id="pay_price" value="{:$rs[pay_price]}" class="short_input">
	<input type="text" name="pay_currency" id="pay_currency" value="{:$rs[pay_currency]}" class="short_input">
	<span class="clue_on">[金额类型，默认是RMB，即人民币]</span>
</div>
<div class="table">
	<div class="left">付款时间：</div>
	<input type="text" name="pay_date" id="pay_date" value="{:$rs[pay_date] ? date('Y-m-d H:i:s',$rs[pay_date]) : ''}" onfocus="show_date('pay_date',true)">
</div>

<div class="notice"><div class="p">
	<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td><span class="lead">&nbsp;&raquo; 产品管理【可同时新增三个产品，如要更多，请提交后再编辑。价格支持负值】</span></td>
	</tr>
	</table>
</div></div>
<div class="main">
<table width="100%" style="layout:fixed;" cellpadding="0" cellspacing="0">
<tr>
	<td class="t_sub" width="50px">ID</td>
	<td class="t_sub">产品名称</td>
	<td class="t_sub" width="100px">单价</td>
	<td class="t_sub" width="100px">购买数量</td>
	<td class="t_sub" width="21px">&nbsp;</td>
</tr>
<!-- $rslist AS $key=>$value -->
<tr class="tr_out" onMouseOver="over_tr(this)" onMouseOut="out_tr(this)">
	<td align="center" class="tc_left">{:$value[id]}</td>
	<td class="tc_right"><input type="text" id="protitle_{:$value[id]}" name="protitle_{:$value[id]}" value="{:$value[title]}" class="long_input" /></td>
	<td align="center" class="tc_right"><input type="text" id="proprice_{:$value[id]}" name="proprice_{:$value[id]}" value="{:$value[price]}" class="short_input" /></td>
	<td class="tc_right" align="center"><input type="text" id="proamout_{:$value[id]}" name="proamount_{:$value[id]}" value="{:$value[amount]}" class="short_input" /></td>
	<td class="tc_right" align="center"><a href="javascript:pro_del('{:$value[id]}');void(0);" class="btn del2" title="删除"></a></td>
</tr>
<!-- end -->
<input type="hidden" name="product_list[]" value="1" />
<tr class="tr_out" onMouseOver="over_tr(this)" onMouseOut="out_tr(this)">
	<td align="center" class="tc_left">新增</td>
	<td class="tc_right"><input type="text" name="protitle[]" class="long_input" /></td>
	<td align="center" class="tc_right"><input type="text" name="proprice[]" class="short_input" /></td>
	<td class="tc_right" align="center"><input type="text" name="proamount[]" class="short_input" /></td>
	<td class="tc_right" align="center">&nbsp;</td>
</tr>
<input type="hidden" name="product_list[]" value="2" />
<tr class="tr_out" onMouseOver="over_tr(this)" onMouseOut="out_tr(this)">
	<td align="center" class="tc_left">新增</td>
	<td class="tc_right"><input type="text" name="protitle[]" class="long_input" /></td>
	<td align="center" class="tc_right"><input type="text" name="proprice[]" class="short_input" /></td>
	<td class="tc_right" align="center"><input type="text" name="proamount[]" class="short_input" /></td>
	<td class="tc_right" align="center">&nbsp;</td>
</tr>
<input type="hidden" name="product_list[]" value="3" />
<tr class="tr_out" onMouseOver="over_tr(this)" onMouseOut="out_tr(this)">
	<td align="center" class="tc_left">新增</td>
	<td class="tc_right"><input type="text" name="protitle[]" class="long_input" /></td>
	<td align="center" class="tc_right"><input type="text" name="proprice[]" class="short_input" /></td>
	<td class="tc_right" align="center"><input type="text" name="proamount[]" class="short_input" /></td>
	<td class="tc_right" align="center">&nbsp;</td>
</tr>
</table>
</div>

<div class="table">
	<div class="left">&nbsp;</div>
	<input type="submit" id="qgbutton" class="mybutton_01" value="提 交">
</div>
</form>

<script type="text/javascript">
var gd_url = base_file + "?"+base_ctrl+"=menu&"+base_func+"=";
//[对输入的数据进行检测]
function to_setok(id)
{
	var pass = getid("pass").value;
	if(!pass || pass == "undefined")
	{
		alert("密钥不允许为空");
		return false;
	}
	getid("qgbutton").disabled = true;
	return true;
}
</script>

<!-- inc:footer -->